<?php
/*
 * [JINYUN!] (C)2001-2099 Jinyunweb.com
 * This is NOT a freeware, use is subject to license terms
 * $Id: 2017-12-13 03:39:35 apple $
 电商客插件菜单
*/
defined('BY_JYA') or exit('error');
$plugins=$this->plugins();
foreach($plugins as $ki=>&$item){
	$item['child']=$item['list'];
	unset($item['list']);
	foreach($item['child'] as $k=>&$p){
		if(!$p['is_install']){
			unset($item['child'][$k]);
		}else{
			if($p['actionurl']){
				$p['url']=$p['actionurl'];
			}else{
				$p['url']=$p['name'].'/basic.module_home/';
			}
		}
	}
}
$menus=array(
	array('title'=>'平台','fa'=>'icon-dianpu','url'=>'jy_lianmerch/index/','child'=>array(
		array('title'=>'平台','child'=>array(
			array('url'=>'jy_lianmerch/index/','title'=>'平台概况'),
		)),
		array('title'=>'入口','child'=>array(
			array('url'=>'jy_lianmerch/basic.module_home/cover/ac=index','title'=>'平台数据入口'),
			array('url'=>'jy_lianmerch/basic.module_home/cover/ac=login','title'=>'商户PC登录'),
		)),
		array('title'=>'小程序管理','child'=>array(
			array('url'=>'core/wxapp.list/list/type=8&basicname=jy_lianmerch','title'=>'DIY小程序'),
			array('url'=>'core/wxapp.plugin/list/basicname=jy_lianmerch','title'=>'应用小程序'),
		)),
	)),	
	array('title'=>'区域招商','fa'=>'icon-dixiaofei','url'=>'jy_area_agent/index/','child'=>array(
		array('title'=>'区域招商概况','child'=>array(
			array('url'=>'jy_area_agent/index/','title'=>'区域招商概况'),
			array('url'=>'jy_area_agent/basic.module_home/cover/ac=index','title'=>'区域招商入口'),
		)),
		array('title'=>'区域管理','child'=>array(
			array('url'=>'jy_area_agent/agent/','title'=>'区域招商管理'),
			array('url'=>'jy_area_agent/member/','title'=>'会员管理'),
			array('url'=>'jy_area_agent/order/','title'=>'区域招商订单'),
			array('url'=>'jy_area_agent/commission/','title'=>'分红管理'),
			array('url'=>'jy_area_agent/balance/','title'=>'结算管理'),
		)),
		array('title'=>'区域设置','child'=>array(
			array('url'=>'jy_area_agent/goods/','title'=>'商品独立比例设置'),
			array('url'=>'jy_area_agent/level/','title'=>'区域招商等级设置'),
			array('url'=>'jy_area_agent/setting/','title'=>'基本设置'),
			array('url'=>'jy_area_agent/page_setting/','title'=>'样式设置'),
			array('url'=>'jy_area_agent/apply_setting/','title'=>'区域招商申请页设置'),
		)),
		array('title'=>'普通招商员','child'=>array(
			array('url'=>'jy_merch/zhaoshang.index/','title'=>'招商概况'),
			array('url'=>'jy_merch/basic.module_home/cover/ac=zhaoshang.index','title'=>'招商员入口'),
			array('url'=>'jy_merch/zhaoshang.list/','title'=>'招商员管理'),
			array('url'=>'jy_merch/zhaoshang.commission/','title'=>'佣金管理'),
			array('url'=>'jy_merch/zhaoshang.balance/','title'=>'结算管理'),
			array('url'=>'jy_merch/zhaoshang.goods/','title'=>'商品独立分佣'),
			array('url'=>'jy_merch/zhaoshang.level/','title'=>'招商员等级'),
			array('url'=>'jy_merch/zhaoshang.setting/','title'=>'基本设置'),
			array('url'=>'jy_merch/zhaoshang.page_setting/','title'=>'样式设置'),
			array('url'=>'jy_merch/zhaoshang.apply_setting/','title'=>'招商员申请页'),
		)),
	)),
	array('title'=>'商户管理','fa'=>'icon-lianxishangjia','url'=>'jy_merch/index/','child'=>array(
		array('title'=>'商户管理','child'=>array(
			array('url'=>'jy_merch/index/','title'=>'商户列表'),
			array('url'=>'jy_merch/cate/','title'=>'商户小店类型'),
			array('url'=>'jy_merch/group/','title'=>'商户分组'),
			array('url'=>'jy_merch/goods/','title'=>'商品管理'),
			array('url'=>'jy_merch/order.list/','title'=>'商户订单'),
			array('url'=>'jy_merch/order.refund/','title'=>'退款订单'),
		)),
		array('title'=>'商户小程序','child'=>array(
			array('url'=>'jy_merch/wxapp/','title'=>'商户小程序'),
		)),
		array('title'=>'入驻申请','child'=>array(
			array('url'=>'jy_merch/ruzhu/','title'=>'入驻申请'),
			array('url'=>'jy_lianmerch/basic.module_home/cover/ac=login','title'=>'商户PC/手机登录'),
		)),
		array('title'=>'提现申请','child'=>array(
			array('url'=>'jy_merch/tixian/','title'=>'提现申请'),
		)),
		array('title'=>'设置','child'=>array(
			array('url'=>'jy_merch/setting/','title'=>'基本设置'),
			array('url'=>'jy_merch/diyfrom/','title'=>'自定义表单'),
			array('url'=>'jy_diypage/index//basicname=jy_merch','title'=>'商户DIY页面'),
			array('url'=>'jy_poster/apiposter//plugin_name=jy_merch','title'=>'商户二维码海报'),
			array('url'=>'jy_merch/fansxieyi/','title'=>'会员协议'),
			array('url'=>'jy_merch/xieyi/','title'=>'商户协议'),
			array('url'=>'core/setting.msgset/list/plugin_name=jy_merch','title'=>'消息开启设置'),
			array('url'=>'core/setting.msgtpl/list/plugin_name=jy_merch','title'=>'微信模板库'),
		)),
	)),
	array('title'=>'积分商城','fa'=>'icon-jifen1','url'=>'jy_creditshop/index/','child'=>array(
		array('title'=>'概况','child'=>array(
			array('url'=>'jy_creditshop/index/','title'=>'概况'),
			array('url'=>'jy_creditshop/basic.module_home/cover/ac=index&type=3','title'=>'积分商城入口'),
			array('url'=>'jy_creditshop/notice/','title'=>'公告列表'),
		)),
		array('title'=>'参数设置','child'=>array(
			array('url'=>'jy_creditshop/setting/basic','title'=>'参数设置'),
		)),
		array('title'=>'分类管理','child'=>array(
			array('url'=>'jy_creditshop/category/list','title'=>'商品分类'),
			array('url'=>'jy_creditshop/category/edit','title'=>'添加分类'),
		)),
		array('title'=>'商品管理','child'=>array(
			array('url'=>'jy_creditshop/goods/list','title'=>'商品管理'),
			array('url'=>'jy_creditshop/goods/edit','title'=>'添加商品'),
		)),
		array('title'=>'参与记录','child'=>array(
			array('url'=>'jy_creditshop/logs/duihuan','title'=>'兑换记录'),
			array('url'=>'jy_creditshop/logs/choujiang','title'=>'抽奖记录'),
			array('url'=>'jy_creditshop/ratelogs/','title'=>'积分手续费'),
			array('url'=>'jy_creditshop/ratelogs3/','title'=>'金豆手续费'),
		)),
		array('title'=>'评价管理','child'=>array(
			array('url'=>'jy_creditshop/comment/list','title'=>'全部评价'),
			array('url'=>'jy_creditshop/comment/list1','title'=>'待审核'),
			array('url'=>'jy_creditshop/comment/list2','title'=>'审核通过'),
			array('url'=>'jy_creditshop/comment/list3','title'=>'审核不通过'),
		)),
		array('title'=>'核销管理','child'=>array(
			array('url'=>'jy_creditshop/basic.module_home/cover/ac=verify.index&type=3','title'=>'核销入口'),
			array('url'=>'jy_creditshop/verify/list','title'=>'全部核销'),
			array('url'=>'jy_creditshop/verify/list1','title'=>'待核销'),
			array('url'=>'jy_creditshop/verify/list2','title'=>'已核销'),
		)),
	)),
	array('title'=>'积分建仓','fa'=>'icon-trade','url'=>'jy_mjicai/index/','child'=>array(
			array('title'=>'入口','child'=>array(
					array('url'=>'jy_mjicai/index/','title'=>'概况'),
					array('url'=>'jy_mjicai/jifen/','title'=>'金豆统计'),
					array('url'=>'jy_mjicai/basic.module_home/cover/ac=index&type=3','title'=>'建仓首页'),
					array('url'=>'jy_mjicai/basic.module_home/cover/ac=member.index&type=3','title'=>'会员入口'),
			)),
			array('title'=>'建仓管理','child'=>array(
					array('url'=>'jy_mjicai/list/','title'=>'建仓管理'),
			)),
			array('title'=>'会员管理','child'=>array(
					array('url'=>'jy_mjicai/member/','title'=>'会员管理'),
					array('url'=>'core/member.creditlog/','title'=>'积分日志'),
			)),
			array('title'=>'参与记录','child'=>array(
					array('url'=>'jy_mjicai/canlog/','title'=>'参与记录'),
					array('url'=>'jy_mjicai/jilog/','title'=>'建仓收益'),
					array('url'=>'jy_mjicai/tilog/','title'=>'提现记录'),
					array('url'=>'jy_mjicai/feelog/','title'=>'信息记录'),
			)),
			array('title'=>'分销管理','child'=>array(
					array('url'=>'jy_mjicai/agent.count/','title'=>'概况'),
					array('url'=>'jy_mjicai/agent.list/','title'=>'分销商管理'),
					array('url'=>'jy_mjicai/agent.apply/','title'=>'审核分销商'),
					//array('url'=>'jy_mjicai/agent.order/','title'=>'分销订单'),
					array('url'=>'jy_mjicai/agent.commission/','title'=>'收益明细'),	
			)),
			array('title'=>'分销设置','child'=>array(
					array('url'=>'jy_mjicai/agent.goods/','title'=>'商品独立佣金设置'),
					array('url'=>'jy_mjicai/agent.level/','title'=>'分销商等级设置'),
					array('url'=>'jy_mjicai/agent.setting/','title'=>'基本设置'),
					array('url'=>'jy_mjicai/agent.page_setting/','title'=>'样式设置'),
					array('url'=>'jy_mjicai/agent.diyfrom/','title'=>'申请页面设置'),				
			)),
			array('title'=>'运营管理','child'=>array(
				array('url'=>'jy_mjicai/team.count/','title'=>'概况'),
				array('url'=>'jy_mjicai/team.list/','title'=>'团长管理'),
				array('url'=>'jy_mjicai/team.commission/','title'=>'团队建仓收益'),
			)),
			array('title'=>'参数设置','child'=>array(
				array('url'=>'jy_mjicai/team.level/','title'=>'团长等级设置'),
				array('url'=>'jy_mjicai/team.setting/','title'=>'基本设置'),
				array('url'=>'jy_mjicai/team.page_setting/','title'=>'样式设置'),
				array('url'=>'jy_mjicai/team.apply_setting/','title'=>'团长申请页设置'),
				array('url'=>'jy_mjicai/team.poster/','title'=>'团二维码海报'),
			)),
			array('title'=>'基本设置','child'=>array(
					array('url'=>'jy_mjicai/setting/','title'=>'基本设置'),
					array('url'=>'jy_mjicai/shopsetting/','title'=>'建仓商城设置'),
			)),
	)),
	array('title'=>'会员管理','fa'=>'icon-paihao0','url'=>'jy_weishop/member.list/','child'=>array(
		array('title'=>'会员管理','child'=>array(
			array('url'=>'jy_weishop/member.list/','title'=>'会员列表'),
			array('url'=>'jy_weishop/member.level/','title'=>'会员等级'),
			array('url'=>'jy_weishop/member.label/','title'=>'标签组'),
			array('url'=>'jy_weishop/member.rank/','title'=>'排行榜设置'),
			array('url'=>'jy_lianmerch/balance/','title'=>'币提现申请'),
		)),
	)),
	array('title'=>'财务对账','fa'=>'icon-dixiaofei','url'=>'jy_weishop/finance.merch/','child'=>array(
		array('title'=>'多商户对账','child'=>array(
			array('url'=>'jy_weishop/finance.merch/','title'=>'多商户对账'),
			array('url'=>'jy_lianmerch/credit1log/','title'=>'积分情况'),
			array('url'=>'jy_lianmerch/credit4log/','title'=>'票情况'),
			array('url'=>'jy_lianmerch/credit6log/','title'=>'R币情况'),
		)),
		array('title'=>'收支明细','child'=>array(
			array('url'=>'jy_weishop/finance.in/','title'=>'收入'),
			array('url'=>'jy_weishop/finance.out/','title'=>'支出'),
		)),
		array('title'=>'现金流','child'=>array(
			array('url'=>'core/member.recharge_log/','title'=>'充值记录'),
			array('url'=>'core/member.tixian/','title'=>'提现申请'),
		)),
		array('title'=>'明细','child'=>array(
			array('url'=>'jy_weishop/finance.credit1log/','title'=>'积分明细'),
			array('url'=>'jy_weishop/finance.credit2log/','title'=>'余额明细'),
		)),
		array('title'=>'对账单','child'=>array(
			array('url'=>'jy_weishop/finance.downloadbill/','title'=>'下载对账单'),
		)),
	)),
	array('title'=>'数据统计','fa'=>'icon-licai','url'=>'jy_weishop/statistics.sale/','child'=>array(
		array('title'=>'销售统计','child'=>array(
			array('url'=>'jy_weishop/statistics.sale/','title'=>'销售统计'),
			array('url'=>'jy_weishop/statistics.sale_analysis/','title'=>'销售指标'),
			array('url'=>'jy_weishop/statistics.order/','title'=>'订单统计'),
		)),
		array('title'=>'项目统计','child'=>array(
			array('url'=>'jy_weishop/statistics.goods_days/','title'=>'销售统计'),
			array('url'=>'jy_weishop/statistics.goods_options/','title'=>'规格统计'),
			array('url'=>'jy_weishop/statistics.goods/','title'=>'销售明细'),
			array('url'=>'jy_weishop/statistics.goods_rank/','title'=>'销售排行'),
			array('url'=>'jy_weishop/statistics.goods_trans/','title'=>'销售转化率'),
		)),
		array('title'=>'会员统计','child'=>array(
			array('url'=>'jy_weishop/statistics.member_cost/','title'=>'消费排行'),
			array('url'=>'jy_weishop/statistics.member_increase/','title'=>'增长趋势'),
		)),
	)),
	array('title'=>'商户应用','isplugin'=>1,'fa'=>'icon-box','url'=>'jy_lianmerch/plugins/','child'=>$plugins),
	array('title'=>'总部设置','fa'=>'icon-shezhi','url'=>'jy_lianmerch/setting/','child'=>array(
		array('title'=>'基础设置','child'=>array(
			array('url'=>'jy_lianmerch/setting/','title'=>'基础设置'),
		)),
		array('title'=>'交易设置','child'=>array(
			//array('url'=>'sysset.trade/','title'=>'交易设置'),
			array('url'=>'jy_weishop/sysset.refund/','title'=>'退款设置'),
			array('url'=>'core/setting.pay/','title'=>'支付设置'),
			array('url'=>'core/setting.cash/','title'=>'提现设置'),
		)),
		array('title'=>'消息提醒','child'=>array(
			array('url'=>'jy_weishop/sysset.notice/','title'=>'消息基本设置'),
			array('url'=>'core/setting.msgset/list/plugin_name=jy_weishop','title'=>'消息开启设置'),
			array('url'=>'core/setting.msgtpl/list/plugin_name=jy_weishop','title'=>'微信模板库'),
		)),
	)),
);
return $menus;